package aca

class Professor {
	
	Integer id
	String nome
	String email
	static hasMany = [turmas: Turma]

	static constraints = {
		id(blank:false,unique:true)
		nome(blank:false)
		email(blank:false)
	}
	@Override
	String toString(){
		return nome;
	}
	
}
